<?php
	include "../../public/commom/config.php";
	include "../lock1.php";	
	
	if($_POST){
		$name = $_POST["name"];
		$cid = $_POST["class_id"];
		
		$sql = "INSERT INTO brand (name,class_id) VALUES ('$name', '$cid')";
			
		$result = mysqli_query($conn, $sql);
			
		mysqli_close($conn);
				
		header("Location: ./index.php");
	}
?>